<?php

/**
 * @version     1.0.0
 * @package     mylits engine
 * @license     GNU General Public License version 3
 * @author      Arfan Fudyartanto D N <arfan@mylits.com> - http://engine.mylits.com
 */
defined('MYLITS') ? '' : exit('No direct script access allowed');

class loginModel extends Mylits_Model {

    function __construct() {
        parent::__construct();
        $this->setConnectionNumber(0);
        $this->setSqlFile('login');
    }

    public function getUser($username, $password) {
        $query = $this->openQuery('get_user', array($username, $password));
        $result = $this->runQuery($query);
        if (!empty($result)) {
            return (object) $result[0];
        }
    }

}

?>
